home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu023.dms / pu023.adf / TOOLS! / PCalc.Doc.Z / PCalc.Doc
Text File  |  1988-07-08  |  11KB  |  173 lines

  1. c
  2. H1HH                       H                       H                       H                       H                       H                        2H 2H 2H 2H 2H H                        9H                        9H                        9H                        9H                        9H                        9H                        9H                        9H                        H                         H  H  H  H  H  H  H  7H  7H  7H  7H  7H  7H  7H  7H7H8H 5H5H6H  7H  8H  9H  0H  1H       5H  1H     9H0H   0H 0H 0H 0H0H   6H 6H 6H 6H5H  6H 6H 7H    9H7H 7H 7H 7H 0H 0H 0H 0H 8H  4H 4H 4H 4H 4H   0H   0H 0H 0H 0H   4H 3H 3H 3H 3H 7H 0H 9H 8H 7H 6H 5H 3H 4H 9H 9H 9H 9H 9H 5H 5H 5H 5H 5H 9H 9H 9H 3H 3H 3H 3H 3H 9H 9H 9H 9H 9H 3H                3H                3H                28H  28H  28H  28H  8H  4H  24H  24H  24H  24H  0H  20H  20H  20H  20H  6H  16H  16H  1H  11H  11H  11H  11H  16H  16H  5H  6H  7H   9H  0H  4H  5H 4H   5H4H 5H 6H 9H 8H 3H 4H 3H H  H  H  H  H  H  H  H  3H  3H  3H  3H  3H  3H  3H  3H  3H  3H                                                                       72H  72H  72H  72H  72H  72H  72H  72H  36H                                      36H  36H  36H  36H  36H  36H                                66H  66H  66H  42H                        H H H H H H H H 2H 2H 2H 2H 2H 2H 2H 2H 2H 2H 71H 71H 71H 71H 71H 71H 71H 71H 41H 65H 65H 35H 35H 35H 35H 35H 35H 35H 42H  42H  42H  42H  42H  42H  42H                     61H  61H  61H  61H  61H  61H  61H  61H  61H  1H             41H 41H 41H 41H 41H 41H 41H 60H 60H 60H 60H 60H 60H 60H 60H 60H 0H 1H
  3. 
  4.  
  5.              Programmer's Calculator (PCalc)
  6.         A programmer's utility from Eggers ShareWare
  7.                Copyright (C) 1987 Joseph A. Eggers
  8.                       All rights reserved
  9.          If you decide to keep this product, please remit the $5.00 
  10.     shareware fee, otherwise, please delete or give away all copies of it.
  11.                Eggers Shareware
  12.                404 Emmet Avenue
  13.               Ferguson, MO 63135
  14. Special Deal:
  15. If you own another calculator from Eggers ShareWare, you may keep the 
  16. Programmer's Calculator without further remittance. Please register your 
  17. ownership though, so you will receive new product and update information.
  18. If you do own others and you have not purchased them, why not do it now?
  19.  
  20. Registration:
  21. If you would like to be a registered user please send $15, plus:
  22. Your Name, Address, Product and version number
  23.  
  24. Programmer's Calculator Features:
  25.     base conversion: binary, octal, decimal, hexadecimal
  26.     bit level logic functions: AND, NOT, OR, NOR, NAND, XOR
  27.     left-shift and right-shift functions (shift one bit)
  28.     choice of working with signed or unsigned numbers
  29.     math functions, including MOD (remainder after integer division)
  30.     memory store, recall, add and subtract
  31.     keyboard or mouse operation
  32.     online help screen
  33.  
  34. Starting the calculator
  35. Workbench: click icon.
  36. CLI, type PCALC or RUN PCALC (include pathname if not current directory)
  37. Ending the calculator:
  38. 1) click close window gadget at upper left
  39. 2) Select calc. window, & press ESC key
  40. 3) Select calc. window, hold down CTRL key, then press C key.
  41. Using calculator functions
  42.   Entering numbers: Click key representing the appropriate number.
  43. If you are using octal numbers, the 8, 9, A, B, C, D, E, and F keys will 
  44. have no effect.
  45.     Note that there is NO indication of overflow when it occurs. If you are
  46. interested in the fact that an overflow has occurred, you can just watch
  47. it happen in the display.
  48. Math functions:
  49. Supported are addition (+), subtraction (-), multiplication (*), integer 
  50. division (/), and remainder after integer division (MOD).  These all operate
  51. like you would expect.  Enter the first operand, then the math key, then the
  52. second operand, then the equals key. The result is displayed in the selected
  53. number base.
  54. Bit-level logic functions:
  55. These functions are of two kinds: those operating on two numbers, (BINARY),
  56. and those operating on one number (UNARY).
  57. Binary operations:
  58. The bit level binary operations are AND, OR, XOR, NOR, and NAND.  You
  59. use these the same way as you use any of the math functions. 
  60. Unary Operations:
  61. The bit level unary operations are NOT, left shift ( << ), and right
  62. shift ( >> ).  These operate on whatever value is in the display at
  63. the time you do the operation.  The NOT operation reverses the value of
  64. every bit in the number, which is real obvious if you are in BIN display
  65. mode, but not so obvious if you aren't.  The shift operations shift 
  66. all the bits in the number one to the left or to the right.  Bits shifted
  67. "off the end" are lost forever.  When using signed numbers, the sign bit
  68. (high order bit) will be propagated when you shift right.
  69. Signed and Unsigned Numbers:
  70. Using the S and U keys you can select whether you want to use signed or
  71. unsigned numbers. When using signed numbers, the high order bit of the 
  72. number is interpreted as a sign bit, rather than as part of the number. 
  73. A one means the number is negative, a zero means the number is positive. 
  74. This limits number size to what can be stored in 31 bits.  When using signed 
  75. numbers, the sign bit will be propagated when you shift right.
  76.   
  77. When using unsigned numbers, all 32 bits are used to store the number, which
  78. then must always be positive. Using the high order bit in the number allows
  79. a value to be stored that is twice as large as the largest number that can
  80. be stored as a signed number. One of the S or the U keys will be high-
  81. lighted to show you whether you are using signed or unsigned numbers. The
  82. highlighted key's text will be in a different color than the numeric keys 
  83. on the calculator.
  84. Numeric base conversions:
  85. The calculator can work in any of four numeric bases: base 2 (binary),
  86. base 8 (octal), base 10 (decimal), and base 16 (hexadecimal).  Converting
  87. between the bases is accomplished by clicking on the key representing the
  88. base you want to work in.  The base you are in determines which of the
  89. numeric keys are usable.  If you are in base 2 for instance, none of the
  90. numeric keys higher than 1 are usable, because only the digits 0 and 1 are
  91. meaningful in base 2. The key for the numeric base you are working in is 
  92. displayed in a different color than the others.
  93.  
  94. The calculator's memory:
  95. The calculator has a single memory where you can store a value for later
  96. recall or for calculations while it is still in memory. A number is stored
  97. in memory by pressing the M key.  Whatever value is displayed currently 
  98. will be copied into memory. Whenever memory has something in it, the M key
  99. will be highlighted to tell you it's there.
  100.     A number is recalled from memory by pressing the MR key.  Whatever value
  101. was in memory is copied to the display, and the value in the display is
  102. lost.  The value that was in memory stays in memory.
  103.     To add or subtract the value in the display with the value in the memory,
  104. press the M+ or M- key.  The result of the operation will be stored the
  105. memory, and the display value will not change.
  106. To clear the memory, press M when there is a zero in the display.
  107. The Clear keys:
  108. To clear the last value entered, press the CE key.  To clear everything in
  109. the calculator except the memory, press the CA key.
  110. Changing the sign of the display:
  111. To change the sign of the value in the display, press the +- key.  If you
  112. are using unsigned numbers, this key has no effect.  Note that when you
  113. in decimal mode, the change of sign is indicated by the presence or absence
  114. of the negative sign to the left of the number, but when you are using a
  115. different numeric base the change in sign is indicated by flipping the
  116. high order sign bit and then propagating it.
  117. Getting Help:
  118. Pressing the HELP key will display a window showing the keys on the 
  119. keyboard that you can use as alternatives to the calculator keys.  You can
  120. leave this window displayed while you continue to use the calculator.  
  121. To close the help window, use its close window gadget.
  122. Using the keyboard with the calculator:
  123. All of the keys on the calculator can be pressed using mouse or keyboard key.
  124. The following table shows which keyboard keys relate to which calculator 
  125. keys. This info. is also available from the help screen. In general, most
  126. keys with a single character can be pressed by the same key on the keyboard.
  127. CALCULATOR      KEYBOARD
  128. ------------------------
  129. 0 - F           0 - F
  130. =               =, RETURN, or ENTER
  131. +, -, /, *      +, -, /, *
  132. S               S 
  133. U               U
  134. MOD             %
  135. <<              <
  136. >>              >
  137. BIN             CTRL-B    the up and down arrow keys can also
  138. OCT             CTRL-O    be used to go from one numeric base
  139. DEC             CTRL-D    to another.
  140. HEX             CTRL-H
  141. AND             &
  142. OR              |
  143. NOT             !
  144. XOR             X
  145. NAND            #
  146. NOR             $
  147. About           ?
  148. M               M
  149. MR              R
  150. M+              [
  151. M-              ]
  152. +-              P
  153. CA              K (think of "K"ill)
  154. C               DEL
  155. quit PCALC      ESC or CTRL-C
  156. HELP            HELP
  157.            CLICK CLOSE GADGET, OR USE CTRL-C OR CTRL-D TO EXIT  
  158.